 Ext.define('HIT.view.DealStateOpenPanel', {
    extend: 'Ext.form.Panel',
    alias: 'widget.dealstateopenpanel',
//置为已开票
  //  height:400,
    width:600,
    overlapHeader: false,
    preventHeader: true,
    title: Share.T('编辑器'),
  
    
    initComponent: function() {
        var me = this;
        this.title = Share.T('编辑器');                            
        Ext.applyIf(me, {
             items: [	
						{
						    xtype: 'textfield',
						    id : 'state-open-id',
						    hidden:true
						}, 
						{
                            xtype: 'textfield',
                            anchor: '100%',
			                id: 'state-open-code',
                            fieldLabel: Share.T('发票代码'),
                            margin: '20 80 20',
		                    width: 300,
		                    maxLength:20,
		                    allowBlank:false,
                            blankText:Share.T('发票代码不能为空'),
                            msgTarget  : 'side'
                        },                     
                        {
                            xtype: 'textfield',
                            anchor: '100%',
			                id: 'state-open-number',
                            fieldLabel: Share.T('发票号码'),
                            margin: '20 80 20',
		                    width: 300,
		                    maxLength:20,
		                    allowBlank:false,
                            blankText:Share.T('发票号码不能为空'),
                            msgTarget  : 'side'
                        },                      
                        {
                            xtype: 'datefield',
                            anchor: '100%',
                            id:'state-open-date',
                            format		 : 'Y-m-d',
                            fieldLabel: Share.T('发票日期'),
                            editable:false,
                            allowBlank:false,
                            blankText:Share.T('日期不能为空'),
                            msgTarget  : 'side',
                            margin: '20 80 20',
		                    width: 300
                        }
                      ] 
                     
                        
         });

        me.callParent(arguments);
        
        
    }

});